package com.yunhe.rentcars.pro.dao.finance;




import com.yunhe.rentcars.pro.entity.finance.Finance;
import com.yunhe.rentcars.pro.entity.rent.Cars;
import com.yunhe.rentcars.pro.entity.system.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/11/24 0024.
 */
public interface FinanceDao {

    /**
     * 查询租车实收记录
     * @param carCodeList
     * @param starttime
     * @param endtime
     * @return
     */
    Finance findFinanceIncome(@Param("carCodeList") List<String> carCodeList, @Param("starttime") Date starttime, @Param("endtime") Date endtime);


    /**
     * 查询车辆保险记录
     * @param carCodeList
     * @param starttime
     * @param endtime
     * @return
     */
    Finance findFinanceInsurance(@Param("carCodeList") List<String> carCodeList, @Param("starttime") Date starttime, @Param("endtime") Date endtime);

    /**
     * 查询车辆保养记录
     * @param carCodeList
     * @param starttime
     * @param endtime
     * @return
     */
    Finance findFinanceMaintain(@Param("carCodeList") List<String> carCodeList, @Param("starttime") Date starttime, @Param("endtime") Date endtime);

    /**
     * 查询车辆年检记录
     * @param carCodeList
     * @param starttime
     * @param endtime
     * @return
     */
    Finance findFinanceYearCheck(@Param("carCodeList") List<String> carCodeList, @Param("starttime") Date starttime, @Param("endtime") Date endtime);

    /**
     * 查询车辆维护记录
     * @param carCodeList
     * @param starttime
     * @param endtime
     * @return
     */
    Finance findFinanceRepair(@Param("carCodeList") List<String> carCodeList, @Param("starttime") Date starttime, @Param("endtime") Date endtime);




    List<Cars> findCars(@Param("deptname") String deptname);

    List<Dept> findDepts();


}
